home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _527C51417CC5448ABCF29EE7387BD082 < prev    next >
Encoding:
Text File  |  2004-07-16  |  5.2 KB  |  178 lines

  1. // $TEXTURE1
  2.  
  3.  
  4. shader()
  5. {
  6.     ShaderQuality(1)
  7.     pass()
  8.     {
  9.         Pixelshader("CarG_ps11_Inside.psh")
  10.    
  11.         tmu()
  12.         {
  13.             TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
  14.             TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
  15.             Texture()
  16.             {
  17.                 Mapchannel(0)
  18.                 Image(TEXTURE1)
  19.                 filtering("linear_no_mip")
  20.             }
  21.         }
  22.         tmu()
  23.         {
  24.             TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
  25.             TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
  26.             Texture()
  27.             {
  28.                 Mapchannel(0)
  29.                 Image(DIRT)
  30.                 filtering("linear_no_mip")
  31.             }
  32.         }
  33.   
  34.         TFactor(0.0, 0.0, 0.0, 1.0)
  35.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level        
  36.         BlendFunc("src_alpha", "inv_src_alpha")
  37.     }
  38.     sortweight("depth_sorted")
  39.     Cull("ccw")
  40. }
  41.  
  42. //------------------------ GF2
  43.  
  44. shader()
  45. {
  46.     ShaderQuality(4)   // a moze 3?
  47.     pass()
  48.     {
  49.         Lighting()
  50.         tmu()
  51.         {
  52.             TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
  53.             TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
  54.             //TexMod("rotate", "const", 0, 0, 0, "const", 0, 0, 0)                        
  55.             Texture()
  56.             {
  57.                 Mapchannel(0)
  58.                 Image(DIRT)
  59.                 filtering("linear_no_mip")
  60.             }
  61.             ColorOp("mul", "diffuse", "tfactor", "tfactor")
  62.             AlphaOp("mul", "texture_a", "diffuse_a", "current")
  63.         }
  64.         tmu()
  65.         {
  66.             ColorOp("mul", "current", "tfactor_a", "current")
  67.             AlphaOp("arg1", "current", "current", "current")
  68.         } 
  69.         TFactor(%daycolor_r, %daycolor_g, %daycolor_b, 0.3)
  70.         colorgen("diffuse", "none", 0,0,0, "user", 0,0,0) // A - dirt level   
  71.         BlendFunc("src_alpha", "inv_src_alpha")
  72.  
  73.         AmbientColor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  74.         DiffuseColor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  75.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  76.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  77.         SpecularPow(0)                
  78.     }
  79.     pass()
  80.     {
  81.         tmu()
  82.         {
  83.             TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
  84.             TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
  85.             //TexMod("rotate", "const", 0, 0, 0, "const", 0, 0, 0)                        
  86.             Texture()
  87.             {
  88.                 Mapchannel(0)
  89.                 Image(TEXTURE1)
  90.                 filtering("linear_no_mip")
  91.             }
  92.             ColorOp("arg1", "texture", "current", "current")
  93.             AlphaOp("arg1", "texture_a", "tfactor_a", "current")            
  94.         }   
  95.         BlendFunc("zero", "inv_src_alpha")
  96.     }  
  97.     
  98.     sortweight("depth_sorted")
  99.     Cull("ccw")
  100. }
  101.  
  102. shader()
  103. {
  104.     ShaderQuality(1)
  105.     pass()
  106.     {
  107.         Lighting()
  108.         tmu()
  109.         {
  110.             TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
  111.             TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
  112.             //TexMod("rotate", "const", 0, 0, 0, "const", 0, 0, 0)                        
  113.             Texture()
  114.             {
  115.                 Mapchannel(0)
  116.                 Image(DIRT)
  117.                 filtering("linear_no_mip")
  118.             }
  119.             ColorOp("mul", "diffuse", "tfactor", "tfactor")
  120.             AlphaOp("mul", "texture_a", "diffuse_a", "current")
  121.         }
  122.         tmu()
  123.         {
  124.  
  125.             TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
  126.             TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
  127.             //TexMod("rotate", "const", 0, 0, 0, "const", 0, 0, 0)                        
  128.             Texture()
  129.             {
  130.                 Mapchannel(0)
  131.                 Image(TEXTURE1)
  132.                 filtering("linear_no_mip")
  133.             }
  134.             
  135.             ColorOp("mul", "current", "tfactor_a", "current")
  136.             AlphaOp("add", "texture", "current", "current")
  137.         } 
  138.         TFactor(%daycolor_r, %daycolor_g, %daycolor_b, 0.3)
  139.         colorgen("diffuse", "none", 0,0,0, "user", 0,0,0) // A - dirt level   
  140.         BlendFunc("src_alpha", "inv_src_alpha")
  141.  
  142.         AmbientColor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  143.         DiffuseColor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  144.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  145.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  146.         SpecularPow(0)                
  147.     }
  148.     sortweight("depth_sorted")
  149.     Cull("ccw")
  150. }
  151.  
  152. // ================================
  153. shader()
  154. {
  155.     ShaderQuality(0)
  156.     pass()
  157.     {
  158.         tmu()
  159.         {
  160.             TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
  161.             TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
  162.             //TexMod("rotate", "const", 0, 0, 0, "const", 0, 0, 0)                        
  163.             Texture()
  164.             {
  165.                 Mapchannel(0)
  166.                 Image(TEXTURE1)
  167.                 filtering("linear_no_mip")
  168.             }
  169.             //ColorOp("lerp", "inv_texture_a", "tfactor", "tfactor")
  170.         }
  171.  
  172.         //TFactor(0.0, 0.0, 0.0, 0.0)
  173.         BlendFunc("src_alpha", "inv_src_alpha")
  174.     }
  175.     sortweight("depth_sorted")
  176.     Cull("ccw")
  177. }
  178.